{layout name="common@common_layout/template" /}
<style type="text/css">
    table tr th,
    table tr td {
        text-align: center;
    }
</style>
<section class="panel panel-default">
    <header class="panel-heading">
        <h3 class="m-b-none">权限组列表</h3>
    </header>
    <div class="row wrapper">
        <div class="col-sm-offset-9 col-sm-3">
        </div>
    </div>
    <div class="table-responsive">
        <table class="table table-striped b-t b-light">
            <thead>
            <tr>
                <th>权限组名</th>
                <th width="40%">操作</th>
            </tr>
            </thead>
            <tbody>
            {volist name="permissionsgroup_list" id="permissionsgroup" empty="暂时没有数据"}
            <tr data-id={$permissionsgroup.id} data-name={$permissionsgroup.description}>
                <td>{$permissionsgroup.description}</td>
                <td>
                    <button class="btn btn-sm btn-info btn-rounded permissionsgroup_change">编辑</button>
                    <a class="btn btn-sm btn-danger btn-rounded permissionsgroup_delete">删除</a>
                </td>
            </tr>
            {/volist}
            <tr>
                <td>
                    <input class="new_permissionsgroup" type="text" placeholder="请输入新的权限组名称"/>
                </td>
                <td>
                    <button class="btn btn-sm btn-success btn-rounded permissionsgroup_add">添加</button>
                </td>
            </tr>
            </tbody>

        </table>
    </div>
    <footer class="panel-footer">
        <div class="row">
            <div class="col-sm-offset-4 col-sm-4 text-center">
                <small class="text-muted inline m-t-sm m-b-sm">权限组列表</small>
            </div>
            <div class="col-sm-4 text-right text-center-xs">
            </div>
        </div>
    </footer>
    <div class="permissionsgroup popup">
        <div class="popup_web permissionsgroup_web">
            <i class="fa fa-times permissionsgroup_exit popup_exit"></i>
            <div class="permissionsgroup_top popup_top">
                <span>2</span>
            </div>
            <div class="permissionsgroup_center popup_content">
            </div>
            <div class="permissionsgroup_bottom popup_bottom">
                <input type="submit" class="btn btn-s-md btn-default confirm_permissionsgroup_change" value="提 交">
            </div>
        </div>
    </div>
</section>
<script src="/static/js/permissionsgroup/permissionsgroup.js" type="text/javascript" charset="utf-8"></script>